home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3compas.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.5 KB  |  104 lines

  1.  
  2. // JavaScript wrapper for r3compas.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_COMPASS_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_COMPASS = 899;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Begins selection from the compass. Draws the compass.
  16. // Returns: Boolean, TRUE if succesfull
  17. // p3: window event describing the mouse position    
  18.  
  19. R3COMPASSM_BEGIN = 899000;
  20.  
  21. function mR3COMPASSM_BEGIN(p3) {
  22.   return   DoA(this.r3obj, 899000, p3, R3TID_INTEGER, 0);
  23. }
  24.  
  25. // Description: Accepts the selection.
  26. // p3: window event describing the mouse position    
  27.  
  28. R3COMPASSM_ACCEPT = 899001;
  29.  
  30. function mR3COMPASSM_ACCEPT(p3) {
  31.   DoA(this.r3obj, 899001, p3, R3TID_INTEGER, 0);
  32. }
  33.  
  34. // Description: Cancels the selection.
  35.  
  36. R3COMPASSM_CANCEL = 899002;
  37.  
  38. function mR3COMPASSM_CANCEL() {
  39.   DoA(this.r3obj, 899002, 0, R3TID_INTEGER, 0);
  40. }
  41.  
  42. // Description: Cancels the selection.
  43. // p3: window event describing the mouse position    
  44.  
  45. R3COMPASSM_MOVE = 899003;
  46.  
  47. function mR3COMPASSM_MOVE(p3) {
  48.   DoA(this.r3obj, 899003, p3, R3TID_INTEGER, 0);
  49. }
  50.  
  51. // Description: Sent to compass when it should show the labels.
  52.  
  53. R3COMPASSM_SHOWLABELS = 899004;
  54.  
  55. function mR3COMPASSM_SHOWLABELS() {
  56.   DoA(this.r3obj, 899004, 0, R3TID_INTEGER, 0);
  57. }
  58.  
  59.  
  60.  
  61.  
  62. R3COMPASSA_CallbackObject = 899501;
  63. function SetR3COMPASSA_CallbackObject(value) {
  64.   R3Set(this.r3obj, R3COMPASSA_CallbackObject, value, R3TID_OBJECT, 0); 
  65. }
  66.  
  67. R3COMPASSA_CallbackMethod = 899502;
  68. function SetR3COMPASSA_CallbackMethod(value) {
  69.   R3Set(this.r3obj, R3COMPASSA_CallbackMethod, value, R3TID_INTEGER, R3TNF_ARRAY); 
  70. }
  71.  
  72. R3COMPASSA_Circles = 899503;
  73. function SetR3COMPASSA_Circles(value) {
  74.   R3Set(this.r3obj, R3COMPASSA_Circles, value, R3TID_INTEGER, R3TNF_ARRAY); 
  75. }
  76.  
  77. R3COMPASSA_Labels = 899504;
  78. function SetR3COMPASSA_Labels(value) {
  79.   R3Set(this.r3obj, R3COMPASSA_Labels, value, R3TID_STRING, R3TNF_ARRAY); 
  80. }
  81.  
  82.  
  83.  
  84. function r3Compass () { 
  85.    this.base = r3God;
  86.    if(arguments.length) {
  87.       this.base(R3CLID_COMPASS, arguments);
  88.    }
  89.    // Methods
  90.    this.BEGIN=mR3COMPASSM_BEGIN;
  91.    this.ACCEPT=mR3COMPASSM_ACCEPT;
  92.    this.CANCEL=mR3COMPASSM_CANCEL;
  93.    this.MOVE=mR3COMPASSM_MOVE;
  94.    this.SHOWLABELS=mR3COMPASSM_SHOWLABELS;
  95.  
  96.    // Attributes
  97.    this.SetCallbackObject=SetR3COMPASSA_CallbackObject;
  98.    this.SetCallbackMethod=SetR3COMPASSA_CallbackMethod;
  99.    this.SetCircles=SetR3COMPASSA_Circles;
  100.    this.SetLabels=SetR3COMPASSA_Labels;
  101. }
  102.  
  103. r3Compass.prototype=new r3Root;
  104. // r3compas.h_H